﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model.FromBody
{
    public class OrderCouponPost
    {
        /// <summary>
        /// 门店id
        /// </summary>        
        public long storeId { get; set; }

        /// <summary>
        /// 会员Id
        /// </summary>
        public long userId { get; set; }
        /// <summary>
        /// 会员Id
        /// </summary>
        public long wxUserId { get; set; }
        /// <summary>
        /// 优惠券码
        /// </summary>
        public string couponCode { get; set; }

        /// <summary>
        /// 渠道
        /// </summary>
        public int channel { get; set; }


        /// <summary>
        /// 项目明细
        /// </summary>
        public List<OrderCouponItem> items { get; set; }
    }

    public class OrderCouponItem
    {
        public long foodSpecId { get; set; }
        public long foodTypeId { get; set; }
        public decimal quantity { get; set; }
        public decimal allAmount { get; set; }
    }
}
